package com.handle.oauth.constants;

import com.handle.common.core.exception.assertion.BusinessExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * 消息常量
 * @author zhangqing
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum implements BusinessExceptionAssert {

    /**
     * 消息常量
     */
    USERNAME_PASSWORD_ERROR(1001,"用户名或密码错误!"),

    USER_NOT_FOUND(1002,"不存在该用户!"),

    ACCOUNT_DISABLED(1003,"该账户已被禁用，请联系管理员!"),

    ACCOUNT_DEL(1004,"该账号已被删除，请联系管理员!"),

    PERMISSION_DENIED(1005,"没有访问权限，请联系管理员!");

    /**
     * 返回码
     */
    private final int code;
    /**
     * 返回消息
     */
    private final String message;
}
